package com.aierjun.wits;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import com.gizwits.gizdataaccess.GizDataAccessLogin;
import com.gizwits.gizdataaccess.listener.GizDataAccessLoginListener;

/**
 * Created by aierJun on 2016/10/30.
 */
public class LoginTestActivity extends Activity {
    Button btnLoginAnonymous;
    Button btnLogin;
    Button btnThird;
    EditText etUserName;
    EditText etPassword;
    EditText etUid;
    EditText etToken;
    RadioGroup rgThirdAccount;
    RadioButton rbBaidu;
    RadioButton rbSina;
    RadioButton rbQQ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        findView();
        initView();
    }

    private void findView() {
        btnLoginAnonymous = (Button) findViewById(R.id.btnLoginAnonymous);
        btnLogin = (Button) findViewById(R.id.btnLogin);
        btnThird = (Button) findViewById(R.id.btnThird);
        etUserName = (EditText) findViewById(R.id.et_username);
        etPassword = (EditText) findViewById(R.id.et_password);
        etUid = (EditText) findViewById(R.id.et_uid);
        etToken = (EditText) findViewById(R.id.et_token);
        rgThirdAccount = (RadioGroup) findViewById(R.id.rg_thirdAccount);
        rbBaidu = (RadioButton) findViewById(R.id.rb_baidu);
        rbSina = (RadioButton) findViewById(R.id.rb_sina);
        rbQQ = (RadioButton) findViewById(R.id.rb_qq);
        rbBaidu.setChecked(true);
       /* btnLogin.setOnClickListener();
        btnLoginAnonymous.setOnClickListener();
        btnThird.setOnClickListener();
        rgThirdAccount.setOnCheckedChangeListener();*/
    }

    private void initView() {
        GizDataAccessLogin gdalogin = new GizDataAccessLogin(new GizDataAccessLoginListener());
    }
}
